// pages/index/set.js
Page({

  data: {   phone:''

  },

  onLoad: function (options) {
    let phone=wx.getStorageSync('phone')
    this.setData({phone})
    console.log(phone);
    

  },
  //跳转到换绑手机号页面
  navphone(){
    wx.navigateTo({
      url: '../../mine/phone/phone'
    })
  },
  //跳转到密码设置
  navpassword(){
      wx.navigateTo({
        url: '../../mine/paypass/paypass?phone='+this.data.phone,
      })
  },
  backclick(){
      wx.removeStorageSync('uid')
      wx.removeStorageSync('avatarUrl')
      wx.removeStorageSync('nickName')
     
      wx.navigateBack({
        complete: (res) => {},
      })
  },
  onShow(){
    let phone=wx.getStorageSync('phone')
    console.log(phone);
    
    this.setData({phone})
  }

})